package sysu.el.array.ints;

public class ArrQueueInt extends ArrInt{
	
	public ArrQueueInt(int num) {
		super(num);
		this.reset();
	}

	public void reset(){
		head = 0;
		super.reset();
	}
	
	private int head;
	
	public int forward(){
		return list[head ++];
	}
	
	public int getHead(){
		return list[head];
	}
	
	public int getTail(){
		return this.counter - 1;
	}
	
	public boolean isEmpty(){
		return (head >= counter);
	}
	
	public boolean isNotEmpty(){
		return (head < counter);
	}
}
